package cn.openea.perpartner.wxpay.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
 * @Name: Swagger2配置类
 * @desc: 用于注入Swagger实例对象到Ioc容器中
 * @author: Mr.Yun
 * @Created: 2022/10/13 17:59
 */
@Configuration
@EnableSwagger2
public class Swagger2Config {

    @Bean
    public Docket docket(){
        Docket  docket= new Docket(DocumentationType.SWAGGER_2);
        docket.apiInfo(new ApiInfoBuilder().title("微信支付相关接口文档").build());
        return docket;
    }
}
